package reduce.fz.com.reduce.service;

import android.content.Context;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.abstracts.AbResponseListener;
import reduce.fz.com.reduce.util.ApiUtil;
import reduce.fz.com.reduce.util.HttpUtils;
import reduce.fz.com.reduce.util.base.ReduceApplication;
import reduce.fz.com.reduce.util.oss.model.FederationToken;

/**
 * Created by qingshengzheng on 15/11/24.
 */
public class StsService {
    private Context context;

    public StsService(Context context) {
        //this.context = context;
        this.context = ReduceApplication.getInstance().getBaseContext();
    }

    public void  getToken(AbResponseListener listener) {
        String url = ApiUtil.getApi(context, R.array.api_sts_token);
        HttpUtils.get(url, listener);
    }
}
